from time import sleep
from selenium import webdriver
from selenium.webdriver import Keys
from selenium.webdriver.common.by import By

driver = webdriver.Edge()
driver.maximize_window()
driver.get("https://www.bilibili.com/")
sleep(3)
bilibili = driver.find_element(By.XPATH, '//input[contains(@class,"nav-search-input")]')
bilibili.send_keys("火影")
sleep(3)
bilibili.send_keys(Keys.ENTER)

sleep(3)
driver.quit()
